#ifndef HOLE_H
#define HOLE_H

#include <QGraphicsItem>
#include <QPoint>

class QGraphicsSceneDragDropEvent;
class Peg;

class Hole : public QGraphicsItem
{
    const int m_col;
    const int m_row;
    Peg *m_peg;
    const qreal m_radius;
    const int m_outline_width = 1;

public:
    explicit Hole(int col, int row, qreal radius);

    QRectF boundingRect() const;
    void paint(QPainter *painter,
               const QStyleOptionGraphicsItem *option,
               QWidget *widget);
    QPainterPath shape() const;

    QPoint boardPos() const;
    qreal radius() const;

    Peg *setPeg(Peg *peg);
    bool havePeg() const;
    
signals:
    
public slots:
    
};

#endif // HOLE_H
